package com.fastCms.business.frame.pojo;

import com.fastCms.business.frame.pojo.vo.CloudMenuVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 哈密瓜科技 版权所有 © Copyright 2019<br>
 *
 * @Description: 登录权限控制<br>
 * @Project: hami <br>
 * @CreateDate: Created in 2019/3/7 下午3:48 <br>
 * @Author: <a href="lsquan666@163.com">lsquan</a>
 */
@Api(value = "CloudUserModel")
@Data
public class CloudUserModel {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "组织编号", example = "RSH")
    private String organizeCode;

    @ApiModelProperty(value = "登录用户名", example = "rsh")
    private String username;

    @ApiModelProperty(value = "姓名", example = "人参大")
    private String name;

    @ApiModelProperty(value = "平台", example = "OPERATION")
    private String platform;

    @ApiModelProperty(value = "用户性质: 0-非管理员 1-系统管理员 2-超级管理员", example = "1")
    private Integer adminType;

    @ApiModelProperty(value = "电话", example = "15757851174")
    private String phone;

    @ApiModelProperty(value = "邮箱", example = "316659431@qq.com")
    private String email;

    @ApiModelProperty(value = "头像URL")
    private String headImg;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "后端菜单结构")
    public List<CloudMenuVO> cloudMenus;

    public CloudUserModel(String userId, String token) {
        this.userId = userId;
        this.token = token;
    }

    public CloudUserModel() {
    }


}
